var mongoose = require('mongoose');
var menuSchema = mongoose.Schema({
        "menuType" : Number,
        "menuName" : String,
        "menuCode" : String,
        "path" : String,
        "icon":String,
        "component":String,
        "menuState":Number,
        "parentId":[],
        "updateTime" : {
            type: Date,
            default: Date.now()
        },//更新时间
        "createTime" : {
            type: Date,
            default: Date.now()
        },//创建时间
})

module.exports = mongoose.model("menus",menuSchema)
